package at.moop.eneo.model;

import java.util.Date;

import android.location.Location;

/**
 * Standard model class for the point.
 */
public class Point {
	private double latitude;
	private double longitude;
	private long dateFetched;
	
	public Point(double latitude, double longitude){
		this.latitude = latitude;
		this.longitude = longitude;
		this.dateFetched = new Date().getTime()/1000L;
	}
	
	public Point(Location location){
		this.latitude = location.getLatitude();
		this.longitude = location.getLongitude();
		this.dateFetched = location.getTime()/1000L;
	}

	public double getLatitude() {
		return latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public long getDateFetched() {
		return dateFetched;
	}

}
